{* 已预订图书列表页面 *}
{include file="../header.html" title="我的图书预订单"}

	<div id="main">
		<div id="main_title">您当前处于 
			<span class="weightFont">管理我的图书</span> >> 
			<span class="softFont">已预订书籍</span>
		</div>
		<div id="main_body">
			{if $bookList}
			<center>
				<form id="listForm">
					<table id="bookList" cellpadding="5" cellspacing="0">
						<tr>
							<th>图书号</th>
							<th>图书名</th>
							<th>作者</th>
							<th>出版时间</th>
							<th>简介</th>
							<th>操作</th>
						</tr>
						{foreach $bookList as $book}
						<tr>
							<td>
								{$book['bid']}
							</td>
							<td>
								{$book['title']}
							</td>
							<td>{$book['author']}</td>
							<td>{$book['pubtime']|date_format:"%Y-%m-%d"}</td>
							<td class="description">
								{if $book['description']}
								{$book['description']}
								{else}暂无
								{/if}
							</td>
							<td>
								<span class="tuidingBtn" name="{$book['bid']}">退订</span>
							</td>
						</tr>
						{/foreach}
					</table>
					<input type="hidden" value="{$userInfo['userName']}" id="userName" />
				</form>
			</center>
			{else}
			<div class="noContent">您还未预订任何书籍</div>
			{/if}
		</div>
	</div>

{include file="../footer.html"}